package com.shujia.day14;

import java.io.FileWriter;
import java.io.IOException;

public class Code10FileWriter {
    public static void main(String[] args) throws IOException {
        FileWriter fileWriter = new FileWriter("data/aa.txt",true);

        fileWriter.write("今天的流类可真多呀");
        fileWriter.write("\n");
        fileWriter.write("IO流真简单，我都不想学了");
        fileWriter.flush();
        fileWriter.close();



    }
}
